package string;
/*
            String replace(char oldChar. char newChar) : 拿newChar字符去替换所有字符中的oldChar字符,生成新的字符串
            String replace(CherSequence target, CharSequence replacement) : 拿replacement 字符串替换原字符串中所有target字符串.生成新的字符串

            敏感字屏蔽
 */

import java.util.Scanner;

public class StringDemo5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        //敏感字校验
        String newLine = line.replace("tmd","***");
        System.out.println("newLine = " + newLine);
    }
}
